import Vue from 'vue'
import Mobile from './App.vue'
import router from './router'
import store from './store/'
import Storage from 'vue-ls'
import '@/permission'
import STORAGE_OPTIONS from '@/util/constants'
import { AMAP_KEY } from '@/util/constants'
import Vant from 'vant'
import 'vant/lib/index.css'
import VueAMap from 'vue-amap';
import { Icon } from 'vant';
// main.js
Vue.prototype.$bus = new Vue()  // 挂载到原型
Vue.use(Vant);
Vue.use(Storage, STORAGE_OPTIONS);
Vue.use(VueAMap);
Vue.use(Icon);
VueAMap.initAMapApiLoader({
  key: AMAP_KEY,
  plugin: ['AMap.Geolocation','AMap.Scale', 'AMap.OverView'],
  v: '1.4.4'
});

Vue.config.productionTip = false;
new Vue({
    router,
    store,
    render: h => h(Mobile)
}).$mount('#app');





